﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LogHelper;
using System.Reflection;

namespace ConsoleTest
{
    class MyLogContent : LogContent
    {

        public MyLogContent(string title, string message):base(true)
        {
            Title = title;
            Message = message;
            UserName = "当前登录用户";
            Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            Program = Assembly.GetExecutingAssembly().GetName().Name;
        }

        public MyLogContent(string title, Exception ex) : this(title, ex == null ? "" : ex.Message)
        {
            Error = ex;
        }

    }
}
